asJwsJsonObject

abstract fun SdJwt<JWT>.asJwsJsonObject(option: JwsSerializationOption = JwsSerializationOption.Flattened): JsonObject(source)

Creates a representation of an SdJwt as a JWS JSON according to RFC7515. In addition to the General & Flattened representations defined in the RFC7515, the result JSON contains an unprotected header which includes an array with the disclosures

Receiver

the SdJwt to serialize

Return

a JSON object either general or flattened according to RFC7515 having an additional disclosures array

Parameters

option

to produce a JwsSerializationOption.General or JwsSerializationOption.Flattened representation as defined in RFC7515